const service = require('../settingService.js')
Page({

  /**
   * 页面的初始数据
   */
  data: {
    phone:"123123123123",
    code:""
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  
  },

  inputCode: function (e) {
    let self = this;
    self.setData({
      code: e.detail.value
    });
  },
  submit:function(){
    wx.navigateTo({
      url: '../resetPassword/resetPassword',
    })
    return;
    let param = { "code": code }
    service.checkCode(param,function(res){
      wx.navigateTo({
        url: '../resetPassword/resetPassword',
      })
    },function(err){
      wx.showToast({
        title: err.data.message,
        icon: 'none',
        duration: 2000,
      })
    })
  }
})